package com.sxt.disruptor.server;

import java.util.concurrent.atomic.AtomicInteger;

import com.lmax.disruptor.EventFactory;

public class Trade {
	private String id;

	private String name;

	private double price;

	private AtomicInteger count = new AtomicInteger(0);
	// TO DO

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public AtomicInteger getCount() {
		return count;
	}

	public void setCount(AtomicInteger count) {
		this.count = count;
	}

	/**
	 * 	工厂类
	 */
	public static final EventFactory<Trade> ENENT_FACTORY = new EventFactory<Trade>() {

		@Override
		public Trade newInstance() {
			// TODO Auto-generated method stub
			return new Trade();
		}
	};
}
